package jiekou3;
/**
 * 角色类（父类）
 */
public abstract class Role {
    private String name;
    private int level;

    public Role() {
    }

    public Role(String name,int level) {
        this.name = name;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
